6.3
MEDIUM CVSS 4.0
CVE-2025-1219
libxml streams use wrong content-type header when requesting a redirected resource
Description

In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when requesting a HTTP resource using the DOM or SimpleXML extensions, the wrong content-type header is used to determine the charset when the requested resource performs a redirect. This may cause the resulting document to be parsed incorrectly or bypass validations.

INFO

Published Date :

March 30, 2025, 6:15 a.m.

Last Modified :

May 23, 2025, 2:15 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-1219 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Php php
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 4.0 MEDIUM [email protected]
Solution
Update PHP to a patched version to address incorrect content-type header handling.
  • Update PHP to version 8.1.32 or later.
  • Update PHP to version 8.2.28 or later.
  • Update PHP to version 8.3.19 or later.
  • Update PHP to version 8.4.5 or later.
Public PoC/Exploit Available at Github

CVE-2025-1219 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-1219.

URL Resource
https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc Exploit Vendor Advisory
https://security.netapp.com/advisory/ntap-20250523-0007/
https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc Exploit Vendor Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-1219 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-1219 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

A PHP CVE-2025-1219 SCANNER. In bash no root.

Shell

Updated: 2 months, 3 weeks ago
1 stars 1 fork 1 watcher
Born at : April 2, 2025, 5:50 p.m. This repo has been linked 1 different CVEs too.

None

HTML Python Shell

Updated: 2 months ago
0 stars 0 fork 0 watcher
Born at : Feb. 13, 2025, 8:50 a.m. This repo has been linked 891 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 19 hours, 33 minutes ago
7248 stars 1200 fork 1200 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 813 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-1219 vulnerability anywhere in the article.

  • Cyber Security News
Critical PHP Vulnerability Let Hackers Bypass the Validation To Load Malicious Content

A critical vulnerability in PHP’s libxml streams has been identified, potentially impacting web applications that rely on the DOM or SimpleXML extensions for HTTP requests. The flaw, tracked as CVE-20 ... Read more

Published Date: Mar 31, 2025 (5 months ago)

The following table lists the changes that have been made to the CVE-2025-1219 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    May. 23, 2025

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20250523-0007/
  • Initial Analysis by [email protected]

    Apr. 15, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
    Added CPE Configuration OR *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.1.0 up to (excluding) 8.1.32 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.2.0 up to (excluding) 8.2.28 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.3.0 up to (excluding) 8.3.19 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.4.0 up to (excluding) 8.4.5
    Added Reference Type CISA-ADP: https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc Types: Exploit, Vendor Advisory
    Added Reference Type PHP Group: https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc Types: Exploit, Vendor Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Mar. 31, 2025

    Action Type Old Value New Value
    Added CWE CWE-1116
    Added Reference https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc
  • New CVE Received by [email protected]

    Mar. 30, 2025

    Action Type Old Value New Value
    Added Description In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when requesting a HTTP resource using the DOM or SimpleXML extensions, the wrong content-type header is used to determine the charset when the requested resource performs a redirect. This may cause the resulting document to be parsed incorrectly or bypass validations.
    Added CVSS V4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added Reference https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 6.3
Attack Vector
Attack Complexity
Attack Requirements
Privileges Required
User Interaction
VS Confidentiality
VS Integrity
VS Availability
SS Confidentiality
SS Integrity
SS Availability
Base CVSS Score: 5.3
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact